package com.smart.other;


import com.smart.common.entities.constant.SmartConstant;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 支付回调处理方法
 *
 * @author xiaxuqiu
 */

@RestController
@RequestMapping(SmartConstant.OTHER_API_PREFIX + "test")
@RequiredArgsConstructor
@Log4j2
public class TestController {


    @GetMapping(value = "bind")
    @ApiOperation(value = "测试绑定")
    public String bind() {

        return "<!DOCTYPE html>\n" +
                "<html lang=\"en\">\n" +
                "<head>\n" +
                "    <meta charset=\"UTF-8\">\n" +
                "    <title>模式测试活动页</title>\n" +
                "</head>\n" +
                "<body>\n" +
                "\n" +
                "<form method=\"post\">\n" +
                "    <p>手机号<input id=\"phoneNumber\" name=\"phoneNumber\"></p>\n" +
                "    <p>验证码<input id=\"yzm\" name=\"yzm\"></p>\n" +
                "\n" +
                "    <p>\n" +
                "        <button type=\"submit\">立即登录</button>\n" +
                "    </p>\n" +
                "</form>\n" +
                "</body>\n" +
                "</html>";

    }
}
